<template>
    <li>
        <div class="figure figure-thumb">
            <a>
                <img v-lazy="goodsInfo.picture" width="80" height="80" :alt="goodsInfo.goodsName" />
            </a>
        </div>
        <p class="name">
            <a>{{ goodsInfo.goodsName }}</a>
        </p>
        <p class="price">{{goodsInfo.unitPrice}}元 X {{ goodsInfo.number }}</p>
    </li>
</template>

<script>
export default {
    name: "figure-thumb",
    props:["goodsInfo"]
};
</script>

<style lang="less" scoped>
li {
    border-collapse: collapse;
    border-spacing: 0;
    list-style-type: none;
    position: relative;
    height: 44px;
    margin: 10px 0;
    padding: 18px 18px 18px 100px;
    line-height: 22px;
    color: #333;

    .figure {
        border-collapse: collapse;
        border-spacing: 0;
        list-style-type: none;
        line-height: 22px;
        color: #333;
        position: absolute;
        left: 0;
        top: 0;

        a {
            border-collapse: collapse;
            border-spacing: 0;
            list-style-type: none;
            line-height: 22px;
            background-color: rgba(0, 0, 0, 0);
            color: #757575;
            text-decoration: none;

            img {
                border-collapse: collapse;
                border-spacing: 0;
                list-style-type: none;
                line-height: 22px;
                color: #757575;
                width: 80px;
                aspect-ratio: auto 80 / 80;
                height: 80px;
                border: 0;
            }
        }

        p {
            color: #757575;
            a {
                color: #757575 !important;
                text-decoration: none;
            }
        }
    }
}
</style>